
import { zbkGet, zbkPost } from '@/utils/request';

export async function getLocation(params) {
    return zbkGet(`/visual/location`, params);
}

export async function getDeviceList(params) {
    return zbkGet(`/visual/deviceList`, params);
}

// 获取用户权限下的执法仪
export async function getOnlineDevice(params) {
    return zbkGet(`/visual/onlineDevice`, params);
}

export async function getDeviceInfo(params) {
    return zbkGet(`/visual/deviceInfo`, params);
}

export async function getTrace(params) {
    return zbkGet(`/visual/trace`, params);
}

export async function closeLiveVideo(params) {
    return zbkPost(`/visual/closeLiveVideo`, params);
}